package com.ideaaedi.springcloud.jd.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ideaaedi.springcloud.jd.commonds.entity.user.po.SysUserGroupRePO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.req.SysGroupBindUserReqVO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.req.SysGroupQueryUserReqVO;
import com.ideaaedi.springcloud.jd.commonds.entity.user.vo.resp.SysUserListRespVO;

import java.util.List;

/**
 * <p>
 * 系统-用户角色中间 服务类
 * </p>
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img
 * src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 2021.0.5.B
 */
public interface SysUserGroupReService extends IService<SysUserGroupRePO> {
    
    /**
     * 给分组绑定用户
     *
     * @param req 请求模型
     *
     * @return 分组拥有的用户
     */
    List<SysUserListRespVO> bindUser(SysGroupBindUserReqVO req);
    
    /**
     * 查询分组拥有的用户
     *
     * @param req 请求参数
     *
     * @return 分组拥有的用户
     */
    List<SysUserListRespVO> queryUser(SysGroupQueryUserReqVO req);
}
